<?php
global $base_url;
?>
<?php foreach ($data as $item) : ?>
    <?php $counter = 0; ?>
    <section id="category_<?php echo $item['tid'] ?>" class="magazine_showcase left">
        <div class="magazine_category" style="background:#025E73 url('<?php echo taxonomy_image_get_url($item['tid']);?>') no-repeat center; background-size:cover;">
        	<a href="<?php echo url('taxonomy/term/' . $item['subtid']) ?>"></a>
        <!--    <?php echo taxonomy_image_display($item['tid']); ?>  -->
            <?php if (arg(2) == 38) { ?>
                
                <div class="magazine_label">
                <h3><a href="<?php echo url('taxonomy/term/' . $item['subtid']) ?>"><?php echo $item['name'] ?></a></h3>
                </div>
                
                
            <?php } else { ?>
                <h2><a href="<?php echo url('taxonomy/term/' . $item['tid']) ?>"><?php echo $item['name'] ?></a></h2>
                <?php echo taxonomy_image_display($item['tid']); ?>

            <?php } ?>
        </div> 

    </section>
<?php endforeach ?>
<!-- </section> -->
